package cn.wolfcode.wolf2w.controller;

import cn.wolfcode.wolf2w.service.IScenicSpotIntroductionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
* 景点明细控制层
*/
@RestController
@RequestMapping("scenicSpotIntroduction")
public class ScenicSpotIntroductionController {

    @Autowired
    private IScenicSpotIntroductionService scenicSpotIntroductionService;

    @GetMapping("/findByScenicId")
    public Object findByScenicId(String scenicId){
        return scenicSpotIntroductionService.findByScenicId(scenicId);
    }

}
